home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: SOCKETS
- Date: Sat, 20 Jan 96 23:53:03 GMT
- Organization: none
- Message-ID: <822181983snz@genesis.demon.co.uk>
- References: <4drdt9$n9e@percy.cs.bham.ac.uk>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4drdt9$n9e@percy.cs.bham.ac.uk>
- M.J.Thomsit-CSSE93@cs.bham.ac.uk "Mark J Thomsit" writes:
-
- >Is there a way to check if a socket is holding any data, without having to wait
- >until some data appears, ?
-
- Not in C, since the C language doesn't have any support for sockets. You
- may find what you want by looking up select() in your manuals but any
- further discussion should be directed to comp.unix.programmer (or
- somewhere relevant to the particular socket library you are using).
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-